package com.gang.mars.basic.function;

import java.util.function.Function;

/**
 * @author gang.chen
 * @description
 * @Date 2021/7/16 9:03
 */
public class Peach08 implements Peach07 {
    /**
     * 1,明确型参类型 String,Integer
     * 2,明确返回类型为 Integer
     * */
    @Override
    public Integer say(Function<String, Integer> function) {
        return function.apply("gang.chen");
    }
}
